package day1031_3;

import java.util.Scanner;//1.引入java.util文件夹的Scanner文件

public class SCB2 {
    public static void main(String[] args) {
        Scanner  sc=new Scanner(System.in);//2.创建变量并赋值     //  10.5. 2. 242

        System.out.println("请输入基本工资：");
        double basicPay=sc.nextDouble();
        //3.调用变量sc的nextDouble()输入一个double数据，赋值给basicPay

        System.out.println("请输入您的(外出/高温)津贴：");
        float  allowance=sc.nextFloat();
        //3.调用变量sc的nextFloat()输入一个float数据，赋值给allowance

        System.out.println("请输入奖金：");
        int  bouns=sc.nextInt();
        System.out.println("总工资：" + basicPay + allowance + bouns);
        double x=2.4;System.out.println();
    }
}
